POST
/
tools
/
credentials
curl --request POST \
  --url https://agent-prod.studio.lyzr.ai/v3/tools/credentials \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "provider_id": "<string>",
  "credentials": {},
  "meta_data": {}
}'
{
  "message": "Credential created successfully."
}

Description

This endpoint creates a new credential for a tool.

Endpoint

POST /v3/tools/credentials

Authentication

API Key (x-api-key) must be included in the header.

Request Body

{
  "name": "string",
  "provider_id": "string",
  "credentials": {},
  "meta_data": {}
}

Response

A message confirming that the credential was created.

Example Request

curl -X POST "https://agent-prod.studio.lyzr.ai/v3/tools/credentials" ^
-H "accept: application/json" ^
-H "content-type: application/json" ^
-H "x-api-key: sk-default-EXAMPLEKEY123" ^
-d "{\"name\":\"string\",\"provider_id\":\"string\",\"credentials\":{},\"meta_data\":{}}"

Authorizations

x-api-key
string
header
required

Body

application/json

Response

200
application/json

Credential created successfully

The response is of type object.